package com.example.a_java.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Schema(description = "角色DTO")
public class RoleDTO {
    
    @Schema(description = "角色ID")
    private Long roleId;
    
    @NotBlank(message = "角色名称不能为空")
    @Schema(description = "角色名称", required = true)
    private String roleName;
    
    @NotBlank(message = "角色权限字符串不能为空")
    @Schema(description = "角色权限字符串", required = true)
    private String roleKey;
    
    @NotNull(message = "显示顺序不能为空")
    @Schema(description = "显示顺序", required = true)
    private Integer sortOrder;
    
    @NotNull(message = "数据范围不能为空")
    @Schema(description = "数据范围(1:全部 2:自定义 3:本部门 4:本部门及以下)", required = true)
    private Integer dataScope;
    
    @Schema(description = "状态(0:禁用 1:正常)")
    private Integer status;
    
    @Schema(description = "备注")
    private String remark;
    
    @Schema(description = "菜单ID列表")
    private List<Long> menuIds;
} 
